//需求的接口
import request from '../request.js'
let get = request.get
let post = request.post
let loginApi = {
  bindUserInfoWx: (data) => get('/yxsystem/bindUserInfo', data, '', '', true),
  getMuseumPageList: (data) => post('/getMuseumPageList', data, '', '', true),
  getMuseumOne: (data) => get('/getMuseumOne', data, '', '', true),
  getReservationPageList: (data) => post('/getReservationPageList', data, '', '', true),
  loginWx: (data) => post('/user/login', data, '', '', true),
  selectData: (data) => post('/user/selectData', data, '', '', true),
  
getReservation: (data) => get('/getReservation', data, '', '', true),
  
  // 注册登录
  cratePerson: (data) => post('/cratePerson', data, '', '', true),
  loginPerson: (data) => post('/login', data,
      '',
      '',
      Object.assign({
        'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
      })
    ),
getPerson: (data) => get('/getPerson', data, '', '', true),
createReservationsPeople: (data) => post('/createReservationsPeople', data, '', '', true),

getReservationByTime: (data) => get('/getReservationByTime', data, '', '', true),
// 	取消
cancelReservation: (data) => post('/cancelReservation', data,
      '',
      '',
      Object.assign({
        'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
      })
   ),
getReservationDEtailByPersonId: (data) => get('/getReservationDEtailByPersonId', data, '', '', true),


}

export default loginApi
